import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { visualizer } from "rollup-plugin-visualizer";
import legacy from "@vitejs/plugin-legacy";
export default defineConfig({
  plugins: [
    vue(),
    legacy(),
    visualizer(),
  ],
  resolve: {
    alias: {
      "@": "/src",
    },
  },
  server: {
    port: 8080,
    open: true,
    proxy: {
      "^/api": {
        target: "http://127.0.0.1:8900/",
      }
    }
  }
})
